package com.zhihuiweijian.demo.service;

import com.zhihuiweijian.demo.model.User;
import com.zhihuiweijian.demo.model.Waste;

import java.util.Date;
import java.util.List;

public interface WasteService {
    void insert(Waste waste);

    Waste findById(Integer id);

    void updateCollect(Integer id, Integer collectManId, String collectManName, Date date);

    void updateWareHouse(Integer id, Integer warehouseManId, String warehouseManName, Date date);

    void updateTransfer(Integer id, Integer transferManId, String transferManName, Date date);

    void updateRuin(Integer id, Integer ruinManId, String ruinManName, Date date);

    void updateError(Integer id, Integer errorManId, String errorManName, Date date);

    List<Waste> findAll();

    List<Waste> findByHospitalId(Integer id);

    List<Waste> findByDate(Date d1, Date d2);
}

